package com.pkk.spring.cloud.service.rpc.code.system;

import com.pkk.spring.cloud.service.rpc.code.StatusCode;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 系统码
 *
 * @author peikunkun
 * @version V1.0
 * @date 2021-01-06 15:12
 **/
@Getter
@AllArgsConstructor
public enum SystemCode implements StatusCode<String> {


  /**
   * 系统正常状态码
   */

  SUCCESS("000000", "处理成功"),

  /**
   * 系统异常状态码
   */
  FAILED("999999", "服务异常，请稍后重试"),
  ERROR("999998", "系统错误"),
  DENY("999997", "系统拒绝处理"),
  FREQUENTLY("999996", "操作过于频繁"),

  ;

  /**
   * 状态码
   */
  private String code;


  /**
   * 消息
   */
  private String message;


}
